//package cn.wolfcode.springdemo_2.config;
//
//import cn.wolfcode.springdemo_2.domain.OtherBean;
//import cn.wolfcode.springdemo_2.domain.SomeBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.ComponentScan;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@ComponentScan(value = "cn.wolfcode.springdemo_2.domain")
//public class OtherConfig {
//    @Bean
//    public SomeBean someBean(OtherBean otherBean) {
//        SomeBean someBean = new SomeBean();
//        someBean.setOtherBean(otherBean);
//        return someBean;
//    }
//}
